﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section2
{
    public class Example08
    {
        public Example08()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Vector v = V.UnitVector.i + V.UnitVector.j;
            V.Vector a = V.UnitVector.i - 2.0 * V.UnitVector.j;
            V.Vector p = v.OrthogonalProjection(a);

            result += p[0].ToString() + "   " +
                p[1].ToString() + "   " + p[2].ToString() + "\r\n";
        }
    }
}

// 1   2   0
